﻿using Gqq.CodeFirst.ProcessPalace;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace GqqUnitTest
{
    
    
    /// <summary>
    ///这是 PalaceCommonTest 的测试类，旨在
    ///包含所有 PalaceCommonTest 单元测试
    ///</summary>
    [TestClass()]
    public class PalaceCommonTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        /// <summary>
        ///GetMaxPrincessId 的测试
        ///</summary>x
        [TestMethod()]
        public void GetMaxPrincessIdTest()
        {
            int expected = 27;
            int actual;
            actual = PalaceCommon.GetMaxPrincessId();
            Assert.AreEqual(expected, actual);
//            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///TestDatabaseValue 的测试
        ///</summary>
        [TestMethod()]
        public void TestDatabaseValueTest()
        {
            string newName = "Rose";
            string oldName = "WenCheng";
            string expected = "Rose_WenCheng";
            string actual;
            actual = PalaceCommon.TestDatabaseValue(oldName, newName);
            Assert.AreEqual(expected, actual);
//            Assert.Inconclusive("验证此测试方法的正确性。");
        }
    }
}
